﻿/**
 * Object main()
 * @base eXria.form.Page
 * @constructor
 * @class main
 * @author wonki at 12. 2. 20 오후 3:47
 */
var main = function() {
	// extends eXria.form.Page Object
	eXria.form.Page.call(this, "main"); //$NON-NLS-1$
	
	// TODO 
	var cnt = 0;
	
	this.onClick_img1 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf2").visible = true;
		page.getControl("frf3").visible = false;
		page.getControl("frf4").visible = false;
		page.getControl("frf6").visible = false;
		page.refresh();
	};
	
	this.onClick_img7 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf2").visible = false;
		page.refresh();
	};
	
	
	
	this.onClick_img8 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf3").visible = false;
		page.refresh();
	};
	
	this.onClick_img2 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf2").visible = false;
		page.getControl("frf3").visible = true;
		page.getControl("frf4").visible = false;
		page.getControl("frf6").visible = false;
		page.refresh();
	};
	
	this.onClick_img9 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf4").visible = false;
		page.refresh();
	};
	
	this.onClick_img3 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf2").visible = false;
		page.getControl("frf3").visible = false;
		page.getControl("frf4").visible = true;
		page.getControl("frf6").visible = false;
		page.refresh();
	};
	
	this.onMouseOver_img1 = function(e /*:eXria.event.Event*/) {
		page.getControl("img1").setSrc("../image/main_icon1_1.png");
		page.getControl("img1").refresh();
	};
	
	this.onMouseOut_img1 = function(e /*:eXria.event.Event*/) {
		page.getControl("img1").setSrc("../image/main_icon1.png");
		page.getControl("img1").refresh();
	};
	
	this.onMouseOver_img2 = function(e /*:eXria.event.Event*/) {
		page.getControl("img2").setSrc("../image/main_icon3_3.png");
		page.getControl("img2").refresh();
	};
	
	this.onMouseOut_img2 = function(e /*:eXria.event.Event*/) {
		page.getControl("img2").setSrc("../image/main_icon2.png");
		page.getControl("img2").refresh();
	};
	
	this.onMouseOver_img3 = function(e /*:eXria.event.Event*/) {
		page.getControl("img3").setSrc("../image/main_icon2_2.png");
		page.getControl("img3").refresh();
	};
	
	this.onMouseOut_img3 = function(e /*:eXria.event.Event*/) {
		page.getControl("img3").setSrc("../image/main_icon3.png");
		page.getControl("img3").refresh();
	};
	
	this.onClick_lbl1 = function(e /*:eXria.event.Event*/) {
		page.open("main.xrf");
	};
	
	this.onInit = function() {
		page.getSubmission("sessionget").send();
		var cnt = page.getInstance("instance").getValue("/root/rescnt");
		if(cnt == 1 ){
			page.open("error.xrf");
		}
	};
	
	this.onClick_lbl5 = function(e /*:eXria.event.Event*/) {
		page.open("infoD.xrf");
	};

	this.onClick_img11 = function(e /*:eXria.event.Event*/) {
		page.open("infoD.xrf");
	};
	
	
	this.onClick_lbl2 = function(e /*:eXria.event.Event*/) {
		page.open("main.xrf");
	};
	
	this.onClick_img12 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf6").visible = false;
		page.refresh();
	};
	
	this.onClick_img5 = function(e /*:eXria.event.Event*/) {
		page.getControl("frf2").visible = false;
		page.getControl("frf3").visible = false;
		page.getControl("frf4").visible = false;
		page.getControl("frf6").visible = true;
		page.refresh();
	};
	
	this.onMouseOver_lbl8 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl8").backgroundColor = "#6d84b4";
		page.getControl("lbl8").refresh();
	};
	
	this.onMouseOut_lbl8 = function(e /*:eXria.event.Event*/) {
		
		page.getControl("lbl8").backgroundColor = "transparent";
		page.getControl("lbl8").refresh();
	};
	
	this.onMouseOver_lbl9 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl9").backgroundColor = "#6d84b4";
		page.getControl("lbl9").refresh();
	};
	
	this.onMouseOut_lbl9 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl9").backgroundColor = "transparent";
		page.getControl("lbl9").refresh();
	};
	
	this.onMouseOver_lbl10 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl10").backgroundColor = "#6d84b4";
		page.getControl("lbl10").refresh();
	};
	
	this.onMouseOut_lbl10 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl10").backgroundColor = "transparent";
		page.getControl("lbl10").refresh();
	};
	
	this.onMouseOut_lbl11 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl11").backgroundColor = "transparent";
		page.getControl("lbl11").refresh();
	};
	
	this.onMouseOver_lbl11 = function(e /*:eXria.event.Event*/) {
		page.getControl("lbl11").backgroundColor = "#6d84b4";
		page.getControl("lbl11").refresh();
	};
};
